const homeRouter = require('koa-router')()
const routeListMock = require('../mockdb/routeList')

homeRouter.get('/permission/getRoute', (ctx: any) => {
  ctx.body = {
    code: 200,
    message: '成功',
    data: routeListMock
  }
})

homeRouter.get('/', (ctx: any) => {
  ctx.body = '123'
})

module.exports = homeRouter
